home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / dpmigcc5.zip / RSX / SOURCE / MAKEFILE < prev    next >
Text File  |  1994-12-12  |  2KB  |  107 lines

  1. #
  2. #    Makefile for RSX 32bit (compiled with EMX+GCC)
  3. #    Rainer Schnitker
  4. #
  5.  
  6. # This Makefile was written for gnu make
  7. # Change VPATH statements for others
  8.  
  9. # vpath: your make uses ';' or ':' between directories
  10. VPATH = $(BLD);$(SOURCEASM);.
  11. #VPATH = $(BLD):$(SOURCEASM):.
  12.  
  13. # not supported by borland make
  14. #.SUFFIXES : .exe .emx .o .c .s
  15.  
  16. # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  17.  
  18. CC = gcc.exe
  19. AS = gcc.exe -x assembler-with-cpp
  20. LINK = ld.exe
  21. CFLAGS = -Wall -I. -g $(DEB) -O2
  22. AFLAGS = -Wall -I$(SOURCEASM)  -g
  23. DEB =
  24.  
  25. BLD=build
  26. SOURCEASM=asm32
  27.  
  28. .c.o:
  29.     $(CC) -c $(CFLAGS) -o $(BLD)\$*.o $<
  30.  
  31. .s.o:
  32.     $(AS) -c $(AFLAGS) -o $(BLD)\$*.o $<
  33.  
  34. OBJS =    rsx.o \
  35.     start32.o \
  36.     process.o \
  37.     signals.o \
  38.     ptrace.o \
  39.     termio.o \
  40.     doserrno.o \
  41.     sysemx.o \
  42.     sysdj.o \
  43.     cdosx32.o \
  44.     loadprg.o \
  45.     timedos.o \
  46.     rmlib.o \
  47.     statemx.o \
  48.     djio.o \
  49.     sysdep2.o \
  50.     fs.o
  51.  
  52. KDEB  = kdeb.o
  53.  
  54. CRT0  = crt0.o
  55.  
  56. AOBJS = dpmi.o \
  57.     dpmi10.o \
  58.     excep32.o \
  59.     adosx32.o \
  60.     copy32.o \
  61.     fpu.o
  62.  
  63. LIBOBJS = printf.o libc.o
  64.  
  65. FPU_EMU = fpu-emu\build\crt0fpu.o fpu-emu\build\fpu-emu.o
  66.  
  67. ALL: rsx.emx \rsx\bin\rsx.exe
  68.     @echo rsx ready!
  69.  
  70. rsx.emx : $(CRT0) $(AOBJS) $(OBJS) $(LIBOBJS) $(FPU_EMU)
  71.     ld -o rsx.emx $(CRT0) @ofiles.rsp $(FPU_EMU)
  72.     strip rsx.emx
  73.  
  74. rsxd.emx : $(CRT0) $(AOBJS) $(OBJS) $(LIBOBJS) $(FPU_EMU) $(KDEB)
  75.     ld -o rsxd.emx $(CRT0) @ofiles.rsp build\$(KDEB) $(FPU_EMU)
  76.     copy /B loader\loader.exe + rsxd.emx \rsx\bin\rsx.exe
  77.  
  78.  
  79. \rsx\bin\rsx.exe: rsx.emx loader\loader.exe
  80.     copy /B loader\loader.exe + rsx.emx \rsx\bin\rsx.exe
  81.  
  82.  
  83.  
  84. #
  85. # ASM-files in asm32 directory
  86. #
  87. dpmi10.o:   $(SOURCEASM)\dpmi10.s
  88.     $(AS) -c $(AFLAGS) -o $(BLD)\$*.o $(SOURCEASM)\$*.s
  89. excep32.o:  $(SOURCEASM)\excep32.s
  90.     $(AS) -c $(AFLAGS) -o $(BLD)\$*.o $(SOURCEASM)\$*.s
  91. adosx32.o:  $(SOURCEASM)\adosx32.s
  92.     $(AS) -c $(AFLAGS) -o $(BLD)\$*.o $(SOURCEASM)\$*.s
  93. copy32.o:   $(SOURCEASM)\copy32.s
  94.     $(AS) -c $(AFLAGS) -o $(BLD)\$*.o $(SOURCEASM)\$*.s
  95. # startup file
  96. crt0.o: $(SOURCEASM)\crt0.s
  97.     $(AS) -c $(AFLAGS) -o $(BLD)\$*.o $(SOURCEASM)\$*.s
  98.  
  99. #
  100. # C-files in asm32 directory
  101. #
  102. dpmi.o: $(SOURCEASM)\dpmi.c
  103.     $(CC) -c $(CFLAGS) $(SOURCEASM)\dpmi.c -o $(BLD)\dpmi.o -I$(SOURCEASM)
  104. fpu.o: $(SOURCEASM)\fpu.c
  105.     $(CC) -c $(CFLAGS) $(SOURCEASM)\fpu.c -o $(BLD)\fpu.o -I$(SOURCEASM)
  106.  
  107.